Graph Valid Tree Solution

visit shbcf.ru